
export default {
	computed:{
		theme(){
			if(this.$store.state.basicSet.themeStyle){
				return this.$store.state.basicSet.themeStyle.theme
			}else{
				return 'red'
			}
		},
		primaryColor(){
			if(this.$store.state.basicSet.themeStyle){
				return this.$store.state.basicSet.themeStyle.color_o
			}else{
				return '#FD463E'
			}
		},
		primaryJb(){
			if(this.$store.state.basicSet.themeStyle){
				return `linear-gradient(315deg, ${this.$store.state.basicSet.themeStyle.color_o}, ${this.$store.state.basicSet.themeStyle.color_t})`
			}else{
				return `linear-gradient(315deg, #FD463E, #ff3883)`
			}
		}
	},
	methods: {
		backPage(){
			uni.navigateBack()
		},
		goPage(url, type) {
			if (type === 'none') {
				return
			}
			if (type === 'switchTab') {
				uni.switchTab({
					url: url
				})
			} else if (type === 'redirectTo') {
				uni.redirectTo({
					url: url
				})
			} else if (type === 'reLaunch') {
				uni.reLaunch({
					url: url
				})
			} else {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
}
